Refactor out setting `whitespace-indent-tabs-mode' and
authorTassilo Horn <tsdh@gnu.org>
Thu, 1 Aug 2013 12:58:28 +0000 (14:58 +0200)
committerTassilo Horn <tsdh@gnu.org>
Thu, 1 Aug 2013 12:58:28 +0000 (14:58 +0200)
commit9f853182010a518199945084da36b57d60a2280f
tree682cb18fac172fb8eac3761c0813c2d7355f5941
parent4eca7b6a54e23154ebad6c76e0115b6f6962e413
Refactor out setting `whitespace-indent-tabs-mode' and
`whitespace-tab-width' buffer-locally to own function, so that
`whitespace-cleanup' and friends work appropriately without
needing to enable `whitespace-mode'.

* whitespace.el (whitespace-ensure-local-variables): New function.
(whitespace-cleanup-region): Call it.
(whitespace-turn-on): Call it.
lisp/ChangeLog
lisp/whitespace.el